package com.tang.qzzp.controller;

import com.tang.qzzp.entity.User;
import com.tang.qzzp.utils.ShiroUtil;
import org.apache.shiro.subject.Subject;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author 唐海清
 * @Version V1.0
 * @Description ......
 */
@Controller
public class CommonController {

    @RequestMapping("/")
    public String toIndex(Model model) {
        model.addAttribute("userName", ShiroUtil.getUserName());
        return "index";
    }
}
